﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Animation_Editor
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new AnimationEditor());

            AnimationEditor animation = new AnimationEditor();
            animation.Show();

            while (animation.Looping)
            {
                animation.Update();
                animation.Render();
                Application.DoEvents();

                if (animation.Visible == false)
                    animation.Looping = false;
            }
        }
    }
}
